
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Models.Entity
{
    /// <summary>
    /// 课程
    /// </summary>
    [Table("c_course")]
    public class CCourseEntity : BaseModel
    {
        /// <summary>
        /// course_id
        /// </summary>
        [Key]
        [Required]
        [Column("course_id")]
        public int course_id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [Required]
        [StringLength(20)]
        [Column("name")]
        public string name { get; set; }

        /// <summary>
        /// 类型：1文化课,2专业课
        /// </summary>
        /// <value></value>
        [Required]
        [Column("type_id")]
        public int type_id { get; set; }

    }
}
